/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.sdgakj.repository;

import com.sdgakj.entity.Familybook;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;


public interface FamilyBookDao extends PagingAndSortingRepository<Familybook, Long>,JpaSpecificationExecutor<Familybook> {
    /**
     * 根据用户id获取家族
     * @param
     * @return
     */
/*
    @Query(" from f_familybook where id=?1")
*/
 /*   Familybook getFamilyByUserId(Long id);*/

   /* @Query("select * from f_family where fu_id=:fuid")
    Page<Family> findFamilyByUserId(@Param("fuid") Long fuid,Specification<Family> spec, PageRequest pageRequest );*/
}
